﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class DefaultResponse : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.ContentType = "image/jpeg";
        Response.WriteFile("~/Images/1.jpg");
        Response.End();
        Response.ContentType = "text/plain";
        Response.Write(Response.ContentType+"<br>");
        Response.Charset = "gbk";
        Response.Write(Response.Charset + "<br>");
        
        //Response.End();
        Response.Write("Response的Write方法");
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/Default.aspx?page=10");
    }
}